package com.sfh.controller.rsp;

import java.util.Date;

import com.sfh.service.model.UserModel;

public class RspUser {
	long userId;
    //昵称
    String userName;
    //性别
    int userSex;
    //城市
    String userAddress;
    //财力
    long userWealth;
    //魅力
    long userCharm;
    //url
    String userUrl;
    //特权到期时间
    Date userVipTime;

    boolean vip;
    
    public static RspUser createRspUser(UserModel model) {
    	RspUser user = new RspUser();
    	user.userId = model.getId();
    	user.userName = model.getNike();
    	user.userSex = model.getSex();
    	user.userAddress = model.getAddress();
    	user.userWealth = model.getWealth();
    	user.userCharm = model.getCharm();
    	user.userUrl = model.getUrl();
    	user.userVipTime = model.getVipTime();
    	user.vip = model.isVip();
    	return user;
    }
}
